package com.guimin.user.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 注册信息
 */
@Data
public class RegisterDto {
    @NotBlank(message = "手机号不能为空")
    @Size(min = 11,max = 11,message = "手机号必须是11位")
    private String phone;
    @NotBlank(message = "密码不能为空")
    @Size(min = 6,max = 20,message = "密码的长度必须是6到20位")
    private String password;
}
